<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //导航条头部的显示未读的信息数量,pc
        view()->composer('books.partials.navtop','App\Http\Controllers\Zhitiao\ZhitiaoController@read_no');

        //导航条头部的显示未读的信息数量,mobile
        view()->composer('mobile.nav','App\Http\Controllers\Mobile\Zhitiao\ZhitiaoController@read_no');
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
